<?php /* Smarty version 2.6.20, created on 2017-08-06 12:10:29
         compiled from product_list.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'product_list.htm', 41, false),array('modifier', 'date_format', 'product_list.htm', 42, false),array('modifier', 'get_spot_name', 'product_list.htm', 43, false),)), $this); ?>
<body>
<link type="text/css" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/new_css/gm_base.css" rel="stylesheet"/>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/js/list/swiper.min.js"></script>
<header>
    <div class="header_top sys_header">
        <div class="st_back"><a href="javascript:;" onclick="javascript:history.go(-1);"></a></div>
        <h1 class="tit">全部票务</h1>
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "detail_header.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    </div>
</header>

<!-- 分类 start -->
<input type="hidden" name="attrid" id="attrid" value="0"/>

<div class="m-class ">
    <div class="swiper-container lst swiper-container-horizontal swiper-container-free-mode">
        <div class="swiper-wrapper" id="swiper-wrapper">
            <a class="itm swiper-slide  <?php if (empty ( $this->_tpl_vars['cat']['catid'] )): ?>swiper-slide-active on<?php endif; ?>"
               href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list">全部</a>
            <?php $_from = $this->_tpl_vars['cat_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['vo']):
?>
            <a class="itm swiper-slide <?php if ($this->_tpl_vars['cat']['catid'] == $this->_tpl_vars['vo']['catid']): ?>swiper-slide-active on<?php endif; ?>"
               href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=list&id=<?php echo $this->_tpl_vars['vo']['catid']; ?>
"><?php echo $this->_tpl_vars['vo']['cat']; ?>
</a>
            <?php endforeach; endif; unset($_from); ?>
        </div>
    </div>
</div>
<!-- 分类 end -->

<div class="m-main">
    <section class="main-xl">
        <div class="change-type">
            <div class="fex">
                <!--list开始-->
                <?php $_from = $this->_tpl_vars['info']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['vo']):
?>
                <div class="pdt_list">
                    <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=detail&id=<?php echo $this->_tpl_vars['vo']['id']; ?>
">
                        <div class="pdt_img"><img src="<?php echo $this->_tpl_vars['vo']['pic']; ?>
" width="110" height="148"></div>
                        <div class="pdt_txt">
                            <div class="pdt_box">
                                <p class="p_tit">
                                    <em><?php echo ((is_array($_tmp=$this->_tpl_vars['vo']['pname'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 30, '...') : smarty_modifier_truncate($_tmp, 30, '...')); ?>
</em>
                                    <span>时间：<?php echo ((is_array($_tmp=$this->_tpl_vars['vo']['performance_start_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
 </span>
                                    <span>场馆：<?php echo ((is_array($_tmp=$this->_tpl_vars['vo']['spot'])) ? $this->_run_mod_handler('get_spot_name', true, $_tmp) : get_spot_name($_tmp)); ?>
</span>
                                    <span>票价：<strong class="price"><?php echo $this->_tpl_vars['vo']['price_list']; ?>
元</strong></span>
                                    <?php if ($this->_tpl_vars['vo']['discount'] > 0): ?>
                                    <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c4"><?php echo $this->_tpl_vars['vo']['discount']; ?>
折</em></span>
                                    <?php endif; ?>

                                    <?php if ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['vo']['reserve_time'] && $this->_tpl_vars['now_time'] <= $this->_tpl_vars['vo']['sell_time'] || empty ( $this->_tpl_vars['vo']['sell_time'] )): ?>
                                    <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c2">预售中</em></span>

                                    <?php elseif (! empty ( $this->_tpl_vars['vo']['sell_time'] ) && $this->_tpl_vars['now_time'] >= $this->_tpl_vars['vo']['sell_time'] && $this->_tpl_vars['now_time'] <= $this->_tpl_vars['vo']['performance_end_time']): ?>
                                            <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c2">销售中</em></span>

                                    <?php elseif ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['vo']['performance_end_time']): ?>
                                        <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c3">已结束</em></span>
                                    <?php endif; ?>


                                </p>
                            </div>
                        </div>
                    </a>
                </div>
                <?php endforeach; endif; unset($_from); ?>
                <!--list结束-->
            </div>
        </div>

    </section>
</div>
<div class="page">
    <?php echo $this->_tpl_vars['info']['page']; ?>

</div>


<script>
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        slidesPerView: 'auto',
        paginationClickable: true,
        spaceBetween: 30
    });
</script>

